<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    {% load static %}
    <script type="text/javascript" src="{% static 'jquery-3.2.1.min.js' %} "/>

    <script type="text/javascript">
        $(function () {
            $('#verifycodeChange').css('cursor', 'pointer').click(function () {
                $('#verifycode').attr('src', $('#verifycode').attr('src') + 1)
            });
        });
    </script>
</head>
<body>
<form method="post" action="{% url 'ss:login' %}">
    {% csrf_token %}

    姓名：<input type="text" name="name"><br/>

    验证码：<img id='verifycode' src="{% url "ss:verifycode"  %}" alt="CheckCode"/>
    <input type="text" name="vc">
{#    <button id='verifycodeChange' >看不清，换一个</button>#}
    <br/>
    <input type="submit" value="提交"/>
</form>
</body>
</html>